<template>
  <div class="menuPage">
    <div class="user">
      <img :src="deafultAvatar" alt="">
      <span>Not logged in</span>
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-youjiantou"></use>
      </svg>
    </div>
    <div class="functions">
      <div class="fnItem">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-shezhi"></use>
        </svg>
        <span>Setting</span>
      </div>
      <div class="fnItem">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-guanyu"></use>
        </svg>
        <span>About</span>
      </div>
      <div class="fnItem">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-fenxiang2"></use>
        </svg>
        <span>Share</span>
      </div>
    </div>
  </div>
</template>

<script>
import { reactive } from '@vue/reactivity'
export default {
  setup() {
    const deafultAvatar = 'https://p1.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg'
    return { deafultAvatar }
  }
}
</script>

<style lang="less" scoped>
.menuPage {
  padding-left: 15px;

  .user {
    margin-top: 12px;
    width: 100%;
    display: flex;
    align-items: center;

    img {
      width: .5rem;
      height: .5rem;
      border-radius: .5rem;
    }

    span {
      font-family: 'Courier New', Courier, monospace;
      margin-left: 5px;
      font-size: 15px;
    }
  }

  .functions {
    margin-top: 30px;

    .fnItem {
      width: 200px;
      height: 40px;
      background: rgb(194, 243, 225);
      display: flex;
      padding-left: 15px;
      align-items: center;
      border-radius: 10px;
      margin: 10px 0;

      .icon {
        margin-right: 7px;
      }
    }
  }
}
</style>
